package learn.mybatis;

import org.apache.ibatis.executor.BatchExecutor;
import org.apache.ibatis.executor.ReuseExecutor;
import org.apache.ibatis.executor.SimpleExecutor;
import org.apache.ibatis.session.Configuration;
import org.apache.ibatis.transaction.jdbc.JdbcTransaction;

public class LearningMybatis {


    private void executors(){
        // === 3种执行器
        SimpleExecutor simpleExecutor = new SimpleExecutor(new Configuration(),new JdbcTransaction(null));
//        simpleExecutor.doUpdate()
        //同SimpleExecutor，只是不关闭statement
        ReuseExecutor reuseExecutor = new ReuseExecutor(null, null);
        //允许执行不同的statement
        BatchExecutor batchExecutor = new BatchExecutor(null, null);
    }



}
